package jp.sinya.register.dao;

import org.apache.commons.dbutils.QueryRunner;

import java.sql.SQLException;

public class UserDao3 {

    public void update(String name, String password) throws SQLException {
        QueryRunner runner = new MyQueryRunner();
        String sql = "update user set password=? where username =?";
        Object[] params = {password, name};
        runner.update(sql, params);
    }
}
